home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programmierung
/
Power-Programmierung (Tewi)(1994).iso
/
magazine
/
progjour
/
1991
/
06
/
alib
/
open_out.asm
< prev
next >
Wrap
Assembly Source File
|
1991-06-25
|
388b
|
30 lines
include asm.inc
public open_output_file
.code
extn ms_dos_strerror
;; open output file
;
; entry DS:SI string
; exit AX,BX handle
; Cf if error, error text set
; calls offset_dos_error, ms_dos
;
open_output_file proc
push cx
mov ax,3C00h
xor cx,cx
xchg dx,si
call ms_dos_strerror
xchg dx,si
mov bx,ax
pop cx
ret
open_output_file endp
end